package com.agileboot.domain.system.tag.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * 系统标签表
 * 仿照 SysNoticeEntity
 */
@Getter
@Setter
@TableName("sys_tag")
@ApiModel(value = "SysTagEntity对象", description = "系统标签表")
public class SysTagEntity extends BaseEntity<SysTagEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("标签ID")
    @TableId(value = "tag_id", type = IdType.AUTO)
    private Integer tagId;

    @ApiModelProperty("标签名称")
    @TableField("tag_name")
    private String tagName;

    @ApiModelProperty("标签类型（1系统标签 2用户自定义）")
    @TableField("tag_type")
    private Integer tagType;

    @ApiModelProperty("状态（0正常 1停用）")
    @TableField("`status`")
    private Integer status;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    /** BaseEntity 中已包含 creatorId/createTime/updaterId/updateTime/deleted 等通用字段 */

    @Override
    public Serializable pkVal() {
        return this.tagId;
    }
}
